package org.insia.smartposse.metier;

import java.io.Serializable;

import org.insia.smartposse.metier.webservice.LightFreelanceAlert;

/**
 * Business class for a freelance's automatic alert.
 * 
 * @author sok hout
 *
 */
public class FreelanceAlert
implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6073957185811947556L;
	private long _id = -1L;
	private Freelance _freelance;
	private Skill _skill;
		
	/**
	 * Empty constructor.
	 *
	 */
	public FreelanceAlert() {
	}

	/**
	 * Getter for the freelance.
	 * @return the freelance.
	 */
	public Freelance getFreelance() {
		return _freelance;
	}

	/**
	 * Setter for the freelance.
	 * @param freelance the freelance to set.
	 */
	public void setFreelance(Freelance freelance) {
		this._freelance = freelance;
	}

	/**
	 * Getter for the id.
	 * @return the id.
	 */
	public long getId() {
		return _id;
	}

	/**
	 * Setter for the id.
	 * @param id the id to set.
	 */
	public void setId(long id) {
		this._id = id;
	}

	/**
	 * Getter for the skill.
	 * @return the skill.
	 */
	public Skill getSkill() {
		return _skill;
	}

	/**
	 * Setter for the skill.
	 * @param skill the skill to set.
	 */
	public void setSkill(Skill skill) {
		this._skill = skill;
	}
	/**
	 * 
	 * @return lcatet the webservice FreelanceAlert representation
	 */
	public LightFreelanceAlert setLight() {
		LightFreelanceAlert lfreeAlert = new LightFreelanceAlert(this);
		return lfreeAlert;
	}
}
